// ...mapMutations({
//   handlePlus: "count/increment",
//   handleMinu: "count/decrement",
// })
import store from "@/store";
export const myMapMutations = (options) => {
  let obj = {};
  for (let attr in options) {
    obj[attr] = (arg) => {
      store.commit(options[attr], arg);
    };
  }
  return obj;
  // return {
  // handlePlus() {
  //   this.$store.commit("count/increment");
  // },
  // handleMinu(n) {
  //   this.$store.commit("count/decrement",n);
  // },
  // }
};
